Correctly filter out unused keynums in wrap_key. Fixes #57

As stated, this fixes issue #57 - a couple of errant numbers weren't being filtered out before being converted into the keypress enum.

I'll merge this in over the weekend if nobody tells me otherwise.