Doing what you did rely on the repeat rate of the keyboard event when you keep a key pressed, and the repeat event is not sent anymore when you press another key at the same time.
You should instead simply put flags to know if the keys your are interested in are pressed or not:
https://www.babylonjs-playground.com/#SRZRWV#23
I have done it for the Shift key.