If you want to learn more about adding custom behavior to your A-Frame scene, I would highly recommend completing A-Frame school and Lesson 3 of our Start to Publish course.
A good place to start would be to write a custom A-Frame component that console.log
when the model is clicked. If you want to click a 3D element in the scene, the camera and clickable entity need to be set up for raycasting: