Sorry for your headache, Jasonridesabike. We aren’t aware of keyboard on Mac being mixed up in Ubuntu. Are all the keys mixed up or just some? Would it be possible for you to send us the logs so we can take a look?
Enable, reproduce, extract and attach here. Alternatively, send to issues[at]nomachine[dot]com.