Added "localstate" support to keymapping: Send local modifier state. This fixes problems with Shift-Home etc