np_functions: fix left-right Ctrl, Shift, and Alt handling