Add percent sign behavior for keypress to calculator