You could raise a flag whenever one of these keys is pressed when another key is pressed while one of the flags are up, do a different thing.
For example, CTRL is keyCode 227. When you receive 227, you raise a flag called
isCtrlPressed. Then when I press E (keycode 101), you’d check if the flag is up first before doing anything.