Found a bug. The game lets you uncrouch when crouching under a 1 and a half block tall space, which gets you stuck in the slab above you. Minecraft handles this by simply not letting the player uncrouch in such a circumstance.