There is a keyboard with ' key broken. I've remapped it to the Wake button with xmodmap
but that affects only X session, how can I achieve this for TTYs?
Note: editing keymap files directly is not the best option since I want the system to be upgradeable.
I haven't had to deal with a situation like yours nor am I sure about the 'Wake' button, but you may want to look into: