Handle keyboard interrupts