Handle keyboard input.