Fix movement calculations

Key movements now work with any size background object