I have tried going into the on-screen keyboard to turn on alt but it still won't work.

When I set it to numlock then held alt and typed in an alt code it didn't work.