Fixed action behavior for keyboard (now action isn't repeated before key release)