Universal foldable keyboard and stylus features