bea00043: cast key for getsquare to fix keys 0-9 in advanced inventory

548b9608f0eaba55bfccbda65c085259c336f56f broke numeric input, this fixes it