There are several variations of engine design that have been experimented with over the years, such as the Knight Sleeve ...
[Tom Stanton] has designed and made a couple of air-powered 3D printed engines ... the sleeve seals create a plug with an o-ring, while the pin pushes open a ball which acts as the inlet valve ...