Handling of keyboard input/output