MKR 1010 Wifi Transistor 3V+ 5V

You button should be ground on one side and connected to pin 8 on the other with the internal pullup enabled. When using one of those 4 pad buttons, you normally use the diagonal corner pins (either way) so the orientation of the button does not matter. Refer to button #3 below...