Solution to getKeyCode() returns 0 in Java | Heykuki News