Keycode improvement (still lacking)
Fixes and updates
Protect from div-by-0 when scaling