Accepting Serial Input from Keyboard as interrupt

Then you should be able to wrap your serial code in

if (Serial.available()) {
...
}