Remove useless parseInt
Add more specs for KeyListener