Fixed a bug in key_release

Refactored the KeyConsts to use a proper map lookup rather than the dual list thing
Fixed a bug in key_release

Refactored the KeyConsts to use a proper map lookup rather than the dual list thing