Canonical pairs, Spatially Confined Motion and the Quantum Time of Arrival Problem