I don't think this is the correct approach, this only works for english keyboard format. We should rather whitelist the most used non-printable keys