Use 'short's instead of 'int's for representing keys