update key codes to rectangle with size tool