Extract key action codes.