Fixed flickering input cursor when keys are pressed
Removed unnecessary code (mostly for testing)