some code optimizations and bugfixes
r, v, shift+a keys now works for all languages