Keyboard#wasPressed works properly now