You can tell od to only get a certain number of bytes (in this case, 4) and exit I believe. That way, you can loop with your od/grep looking for a particular keypress, or even do a switch on the output of od.

Not got a linux box handy to try "man od" on though...

Hugo