Add keyboard input functions