Fixed keyboard input for new gui