Key handling now supports modifier keys.